import http from "@/api";
import {LoginForm, LoginResult} from "@/interface/api";

/**
 * 后台用户登录
 */
// 用户登录
export const loginApi = (params: LoginForm) => {
    return http.post<LoginResult>(`/login`, params, { noLoading: true });
};

// 用户退出登录
export const logoutApi = () => {
    return http.post(`/logout`);
};
